package cn.tx.构造方法;

/**
 * @ProjectName: study-javaSE$
 * @Package: cn.tx.构造方法$
 * @ClassName: Student1$
 * @Description: 类作用描述
 * @Author Mxb
 * @CreateDate 2020/10/17 8:35
 * @Version 1.0
 */
class Student1 {
    private String name;
    private int age;

    public Student1() {
    }
    public Student1(String name) {
        this.name = name;
    }
    public Student1(int age) {
        this.age = age;
    }
    public Student1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void show() {
        System.out.println(name + "," + age);
    }
}
